﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Contact : Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        //Acciones iniciales para verificar usuario loggeado y visibilidad de menus
        var master = Master as SiteMaster;
        if (master != null)
        {
            master.AccionesIniciales();
        }
        //verificar si el usuario es valido
        var rol = (Int32)Page.Session["rol"];
        if (rol != 1)
        {
            Response.Redirect("About.aspx");
        }
    }
}